import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {FormsModule, ReactiveFormsModule} from "@angular/forms";

import { RolesRoutingModule } from './roles-routing.module';
import { RolesComponent } from './roles.component';
import { RoleDetailComponent } from './role-detail/role-detail.component';
import { RoleAddComponent } from './role-add/role-add.component';
import { RoleUpdateComponent } from './role-update/role-update.component';
import { RoleAssignUserComponent } from './role-assign-user/role-assign-user.component';
import { RoleAuthorizedComponent } from './role-authorized/role-authorized.component';
import {RolesService} from "./roles.service";
import {MenusService} from "../menus/menus.service";
import {AccountsService} from "../accounts/accounts.service";
import {OneOperationModule} from "../../../widgets/one-operation/one-operation.module";

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    OneOperationModule,
    RolesRoutingModule
  ],
  declarations: [
    RolesComponent,
    RoleDetailComponent,
    RoleAddComponent,
    RoleUpdateComponent,
    RoleAssignUserComponent,
    RoleAuthorizedComponent
  ],
  providers :[
      RolesService,
      MenusService,
      AccountsService
  ]

})
export class RolesModule { }
